/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.router.core.domain.action;

import cn.hutool.core.bean.BeanUtil;
import info.peigen.hotpot.business.router.core.repository.entity.RouterChannelEntity;
import info.peigen.hotpot.business.router.facade.Channel;

/**
 * <b>(RouterChannelConverter)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/8/31
 */
public class RouterChannelConverter {
    public static RouterChannelEntity convert(Channel domain) {
        return BeanUtil.copyProperties(domain, RouterChannelEntity.class);
    }

    public static Channel convert(RouterChannelEntity entity) {
        return BeanUtil.copyProperties(entity, Channel.class);
    }
}
